package com.server;

/**
 * @author wwf
 * @date 2020年12月25日 13:43:36
 */
public abstract class HttpServlet implements Servlet{
    public abstract void doGet(Request request,Responese responese);
    public abstract void doPost(Request request,Responese responese);


    @Override
    public void Service(Request request, Responese responese) {
        if(request.getMethod().equalsIgnoreCase("get")){
            doGet(request,responese);
        }else{
            doPost(request,responese);
        }
    }
}
